package junit;
import static org.junit.Assert.*;
import geographer.City;
import geographer.Country;
import junit.framework.Assert;

import org.junit.Test;


public class CountryTest {

	@Test
	public void testToString() {
		Country country = new Country("Test", "10", "12", "Africa");
		Assert.assertEquals(country.toString(), "Test, 12, 10, Africa");
	}

	@Test
	public void testAdd() {
		Country country = new Country("Test", "10", "12", "Africa");
		City city = new City("Test", "1", "1", "Test");
		//country.add(city);
		Assert.assertEquals(country.getSubregions().size(), 1);
	}

	@Test
	public void testGetSubregions() {
		Country country = new Country("Test", "10", "12", "Africa");
		City city = new City("Test", "1", "1", "Test");
		//country.add(city);
		Assert.assertEquals(country.getSubregions().size(), 1);
	}

	@Test
	public void testGetSuperRegion() {
		Country country = new Country("Test", "10", "12", "Africa");
		Assert.assertEquals(country.getSuperRegion(), "Africa");
	}

}
